package example_03.iftest.practice_02;

public class month {
    public static void main(String[] args) {
        int month = 12;
        if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
            System.out.println("该月份31天");
        } else if (month == 4 || month == 6 || month == 9 || month == 11) System.out.println("该月份30天");
        else if (month == 2) System.out.println("该月份28天");
        else System.out.println("月份输入错误");
    }
}
